import request from '@/utils/request'
// 上传视频
export function uploadvideo(data) {
  return request({
    url: '/video/uploadvideo2/',
    method: 'post',
    data
  })
}

// 按关键字搜索视频api
export function searchvideo(param) {
  return request({
    url: '/video/getVideo/',
    method: 'get',
    params: param
  })
}

// 删除视频api
export function deletevideo(param) {
  return request({
    url: '/video/delete/',
    method: 'delete',
    params: param
  })
}

// 获取视频资源
export function playVideo(param) {
  return request({
    url: '/video/playVideo/',
    method: 'get',
    responseType: 'blob',
    params: param
  })
}
